/*
 * @Description: 
 * @FilePath: /undefined/Library/WebServer/Documents/public/downloads/threadbtree.cpp
 * @Author: Wei Zhou
 * @Github: https://github.com/zromyk
 * @Date: 2020-10-18 16:53:57
 * @LastEditors: Wei Zhou
 * @LastEditTime: 2020-10-18 17:28:33
 * @Copyright: Copyright © 2017 muyiro. All rights reserved.
 */

#include <iostream>

template <class T>
class ThreadTree
{
public:
    ThreadTree() {
        root = new ThreadTreeNode;
    }

private:
    struct ThreadTreeNode
    {
        T data;
        weak_ptr<ThreadTreeNode> lchiled, rchiled;
        bool lfag, rfag;
    };

    shared_ptr<ThreadTreeNode> root;
}